package com.zutassociation.system.service.impl;

import com.zutassociation.system.domain.Trends;
import com.zutassociation.system.mapper.TrendsMapper;
import com.zutassociation.system.service.TrendsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 动态 服务层实现
 * @author 黄玉东
 * @version 1.0
 * @date 2021/5/9 17:52
 */
@Service
public class TrendsServerImpl implements TrendsService {

    @Autowired
    private TrendsMapper trendsMapper;

    @Override
    public Trends selectTrendsById(Long trendsId) {
        return trendsMapper.selectTrendsById(trendsId);
    }

    @Override
    public Trends selectTrendsByUserId(Long userId) {
        return trendsMapper.selectTrendsByUserId(userId);
    }

    @Override
    public List<Trends> selectTrendsList(Trends trends) {
        return trendsMapper.selectTrendsList(trends);
    }

    @Override
    public int insertTrends(Trends trends) {
        return trendsMapper.insertTrends(trends);
    }

    @Override
    public int updateTrends(Trends trends) {
        return trendsMapper.updateTrends(trends);
    }

    @Override
    public int updateTrendsReport(Trends trends) {
        return trendsMapper.updateTrendsReport(trends);
    }

    @Override
    public int updateTrendsStatus(Trends trends) {
        return trendsMapper.updateTrendsStatus(trends);
    }

    @Override
    public int updateTrendsClick(Trends trends) {
        return trendsMapper.updateTrendsClick(trends);
    }

    @Override
    public int updateTrendsFabulous(Trends trends) {
        return trendsMapper.updateTrendsFabulous(trends);
    }

    @Override
    public int updateTrendsCollection(Trends trends) {
        return trendsMapper.updateTrendsCollection(trends);
    }

    @Override
    public int updateTrendsReply(Trends trends) {
        return trendsMapper.updateTrendsReply(trends);
    }
    @Override
    public int updateTrendsReplydel(Trends trends) {
        return trendsMapper.updateTrendsReplydel(trends);
    }

    @Override
    public int deleteTrendsById(Long trendsId) {
        return trendsMapper.deleteTrendsById(trendsId);
    }

    @Override
    public int deleteTrendsByIds(Long[] trendsIds) {
        return trendsMapper.deleteTrendsByIds(trendsIds);
    }

    @Override
    public int deleteTrendsByReport1(Long[] trendsIds) {
        return trendsMapper.deleteTrendsByReport1(trendsIds);
    }

    @Override
    public int deleteTrendsByReport2(Long[] trendsIds) {
        return trendsMapper.deleteTrendsByReport2(trendsIds);
    }
}
